﻿using System;
using OhioState.AssetManaged;

namespace OhioState.Graphics
{
    [Serializable()]
    public sealed class DepthBufferProxy : SharedAsset, IDepthBuffer
    {
        public DepthBufferProxy(string name, int width, int height, bool stencilSupport)
            : base(name)
        {
            if (width <= 0)
                throw new ArgumentOutOfRangeException("Width must be greater than zero");
            if (height <= 0)
                throw new ArgumentOutOfRangeException("Height must be greater than zero");

            this.Width = width;
            this.Height = height;
            this.StencilSupport = stencilSupport;
        }

        #region IDepthBuffer
        public int Width { get; private set; }
        public int Height { get; private set; }
        public bool StencilSupport { get; private set; }
        #endregion
    }
}
